package com.cwz.seata.demo2.controller;


import com.cwz.seata.demo2.service.SeataDemoCopyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Wen
 * @since 2023-10-08
 */
@RestController
@RequestMapping("/seata-demo")
public class SeataDemoCopyController {
	@Autowired
	private SeataDemoCopyService seataDemoCopyService;

	@GetMapping("/seata/demo/test")
	public int seataDemoTest() {
		return this.seataDemoCopyService.seataDemoTest();
	}
}

